Skip to content

feat(core): add useAsyncLock hook#381

Open
zztnrudzz13 wants to merge 1 commit into
mainfrom
feat/use-async-lock
Open

feat(core): add useAsyncLock hook#381
zztnrudzz13 wants to merge 1 commit into
mainfrom
feat/use-async-lock

Conversation

@zztnrudzz13
Copy link
Copy Markdown
Collaborator

Overview

  • Add useAsyncLock, a new core hook for preventing overlapping async work by skipping concurrent calls while a lock is held.
  • Return explicit execution results through runWithLock: { status: 'executed', data } when work runs and { status: 'blocked' } when a call is skipped.
  • Export the hook from the core package, add English/Korean docs, and include a minor changeset for react-simplikit.

Checklist

  • Did you write the test code?
  • Have you run yarn run fix to format and lint the code and docs?
  • Have you run yarn run test:coverage to make sure there is no uncovered line?
  • Did you write the JSDoc?

@zztnrudzz13 zztnrudzz13 requested a review from kimyouknow as a code owner June 1, 2026 17:12
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jun 1, 2026

🦋 Changeset detected

Latest commit: ed78f03

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
react-simplikit Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 1, 2026

Size Change: 0 B 🆕

Total Size: 0 B

compressed-size-action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant